<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<div id="header">


    <span id="controls" >
        <c:choose>
            <c:when test="${empty loginWelcomeFieldAttribute}">
            <span id="login_button"></span>
            <span id="reg_button"></span>
            </c:when>
            <c:otherwise>
                <c:if test="${not empty isAdmin}">
                    <a href="/admin" style="float: left">Administration page</a>
                </c:if>
                <span style="margin-right: 7px;vertical-align: 10px;"><c:out value="${loginWelcomeFieldAttribute}"/></span>
                <a id="logout_button" href="/login?logout=true"></a>
            </c:otherwise>
        </c:choose>
    </span>

    <!-- Images for preliminary downloading -->
    <img src="/img/log_standart.png" style="display: none"/>
    <img src="/img/log_hover.png" style="display: none"/>
    <img src="/img/log_pressed.png" style="display: none"/>
    <img src="/img/reg_standart.png" style="display: none"/>
    <img src="/img/reg_hover.png" style="display: none"/>
    <img src="/img/reg_pressed.png" style="display: none"/>
    <img src="/img/logout-standart.png" style="display: none"/>
    <img src="/img/logout-hover.png" style="display: none"/>
    <img src="/img/logout-pressed.png" style="display: none"/>

</div>